package com.bicon.botu.mall.order.processor.handler;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 钱包
 *
 * @Author: liushujie
 * @Date: Created in 10:09 2017/7/3/003
 */
public interface WalletRpc {


    /**
     * 校验支付信息并支付
     *
     * @param userId       用户id
     * @param password     用户密码
     * @param payType      支付类型 0:余额，1：支付宝，2：微信，3：银联
     * @param password     金额
     * @param subject      科目
     * @param subjectChild 科目子项
     * @return
     */
    @RequestMapping(value = "/V2.0.0/rpc/wallet/checkPayInfo", method = RequestMethod.POST)
    public String checkPayInfo(@RequestParam(value = "userId") String userId, @RequestParam(value = "password") String password,
                               @RequestParam(value = "payType") String payType, @RequestParam(value = "money") double money,
                               @RequestParam(value = "subject") String subject, @RequestParam(value = "subjectChild") String subjectChild,
                               @RequestParam(value = "appId") String appId, @RequestParam(value = "module") String module, @RequestParam(value = "business") String business);

}
